#===============================================================================
# @brief    cmake file
# Copyright (c) CompanyNameMagicTag 2023-2023. All rights reserved.
#===============================================================================

# 系统网关设备编译
if(DEFINED CONFIG_SAMPLE_SHIPSYSTEM_GATEWAY_NODE)
    add_subdirectory_if_exist(Gateway_Node)

# 控制节点设备编译
elseif(DEFINED CONFIG_SAMPLE_SHIPSYSTEM_CONTROL_NODE)
    add_subdirectory_if_exist(Control_Node)

# 数据采集节点设备编译
elseif(DEFINED CONFIG_SAMPLE_SHIPSYSTEM_ENVIRONMENTAL_NODE)
    add_subdirectory_if_exist(Collection_Node)
endif()

set(SOURCES "${SOURCES}" ${SOURCES_LIST} ${SOURCES_COMMONALITY_LIST} PARENT_SCOPE)
set(PUBLIC_HEADER "${PUBLIC_HEADER}" ${HEADER_LIST} ${HEADER_COMMONALITY_LIST} PARENT_SCOPE)